﻿namespace PersonaLibrary
{    
    public abstract class Alphabet
    {
        public abstract string Language { get; set; }

        public abstract string UpperValue { get; set; }

        public abstract string DownValue { get; set; }
                
        public override string ToString()
        {
            return Language;
        }
    }

    
    public sealed class RuAlphabet : Alphabet
    {
        
        public override string DownValue
        {
            get
            {
                return "абвгдеёжзийклмнопрстуфхцчшьщъыэюя";
            }
            set { }
        }

        public override string UpperValue
        {
            get
            {
                return "абвгдеёжзийклмнопрстуфхцчшьщъыэюя".ToUpper();
            }
            set { }
        }

        public override string Language
        {
            get
            {
                return "рус";
            }
            set { }
        }
    }

    public sealed class EnAlphabet : Alphabet
    {
        public override string DownValue
        {
            get
            {
                return "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToLower();
            }
            set { }
        }

        public override string UpperValue
        {
            get
            {
                return "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
            }
            set { }
        }

        public override string Language
        {
            get
            {
                return "eng";
            }
            set { }
        }
    }
}
